package com.item1024.service.Impl;

import com.item1024.mapper.OperateLogMapper;
import com.item1024.pojo.OperateLog;
import com.item1024.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 阳十三
 * @email wdful165177@gmail.com
 * @blog http://www.item1024.com
 * @date 2017/8/24
 */
@Service
public class OperateServiceImpl implements OperateLogService {

    @Resource
    private OperateLogMapper operateLogMapper;

    @Override
    public int deleteByPrimaryKey(Integer operateId) {
        return operateLogMapper.deleteByPrimaryKey(operateId);
    }

    @Override
    public int insert(OperateLog record) {
        return operateLogMapper.insert(record);
    }

    @Override
    public int insertSelective(OperateLog record) {
        return operateLogMapper.insertSelective(record);
    }

    @Override
    public OperateLog selectByPrimaryKey(Integer operateId) {
        return operateLogMapper.selectByPrimaryKey(operateId);
    }

    @Override
    public int updateByPrimaryKeySelective(OperateLog record) {
        return operateLogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OperateLog record) {
        return operateLogMapper.updateByPrimaryKey(record);
    }
}
